from datetime import timedelta
from gasConfig import db_uri

class Config(object):
    DEBUG = False
    TESTING = False
    SQLALCHEMY_DATABASE_URI = db_uri
    APP_NAME = 'GasFlask'
    SECRET_KEY = 'hudong is my friend!'
    JWT_EXPIRATION_DELTA = timedelta(days=30)
    JWT_AUTH_URL_RULE = '/auth/login'
    SECURITY_REGISTERABLE = True
    SECURITY_RECOVERABLE = True
    SECURITY_TRACKABLE = True
    SECURITY_PASSWORD_HASH = 'pbkdf2_sha512'
    SECURITY_PASSWORD_SALT = 'imust.cn'
    SQLALCHEMY_TRACK_MODIFICATIONS = False




class ProductionConfig(Config):
    SQLALCHEMY_DATABASE_URI = db_uri
    #'mysql://root:root@127.0.0.1/dbgas'


